import { RouteRecordRaw, RouterView } from 'vue-router'

const routes: RouteRecordRaw = {
  path: '/order',
  name: 'order',
  component: RouterView,
  meta: { title: '订单', requiresAuth: true },
  children: [
    {
      path: 'list',
      name: 'order_list',
      component: () => import('@/views/order/list.vue'),
      meta: { title: '订单列表' }
    },
    {
      path: 'offline',
      name: 'order_offline',
      component: () => import('@/views/order/offline.vue'),
      meta: { title: '收银平台' }
    }
  ]
}

export default routes